package com.stu.manager.studentscoremanagersys.context;

import com.stu.manager.studentscoremanagersys.dto.JWTManagerDTO;

public class ContextManager {
   public static ThreadLocal<JWTManagerDTO> threadLocal = new ThreadLocal<>();

   public static void set(JWTManagerDTO jwtManagerDTO){
       threadLocal.set(jwtManagerDTO);
   }

   public static JWTManagerDTO get(){
       return threadLocal.get();
   }

   public static void remove(){
       threadLocal.remove();
   }
}
